package dfbz.homework1;

public class Test08 {
    public static void main(String[] args) {
        double s_h=change(30.0);
        System.out.println("摄氏度:30.0度"+"-------"+"华氏度为"+s_h);
        double h_s=change1(86.0);
        System.out.println("华氏度:86.0度"+"-------"+"摄氏度为"+h_s);
    }
    public static double change(double seshi){
        double huashi=(9.0/5)*seshi+32;
        return huashi;
    }
    public static double change1(double huashi){
        double seshi=(huashi-32)/1.8;
        return seshi;
    }
}
